﻿using EkStudio.com.bean.xml.reflection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.RootInterface.Plugin
{
    public class BillExpandCodeRoot:BillObjectInterface
    {
        private BillExpandJsCodeRoot jscript;
        private BillExpandJavaCodeRoot javaPlugin;

        [XmlElement("jScript")]
        public BillExpandJsCodeRoot Jscript
        {
            get
            {
                return jscript;
            }

            set
            {
                jscript = value;
            }
        }
        [XmlElement("javaPlugin")]
        public BillExpandJavaCodeRoot JavaPlugin
        {
            get
            {
                return javaPlugin;
            }

            set
            {
                javaPlugin = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            BillExpandCodeRoot clone = new BillExpandCodeRoot();
            if (javaPlugin != null)
            {
                clone.JavaPlugin = ((BillExpandJavaCodeRoot)javaPlugin.Clone());
                clone.JavaPlugin.ParentBean  = clone;
            }
            if (jscript != null)
            {
                clone.Jscript = ((BillExpandJsCodeRoot)jscript.Clone());
                clone.Jscript.ParentBean = clone;
            }
            return clone;
        }
    }
}
